package com.usian.admin.job;

import com.usian.admin.service.WemediaNewsAutoService;
import com.usian.wemedia.client.WemediaFeign;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Fay
 * @date 2022/7/14&11:31
 */
@Slf4j
@Component
public class WemediaAutoAuditJob {
    @Autowired
    private WemediaNewsAutoService wemediaNewsAutoService;
    @XxlJob("wemediaAutoScanJob")
    public ReturnT<String> wemediaAutoAudit(String param){
        log.info("自媒体审核任务开始了");
        wemediaNewsAutoService.auditWmNewsTask();
        log.info("自媒体审核任务结束了");
        return ReturnT.SUCCESS;

    }
}
